<%@page import="com.sample.jdbc.JdbcUtils"%>
<%@page import="com.sample.javabean.*"%>
<%--使用include命令引入公共页面 --%>
<%@include file="/comm/common.jsp" %>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户列表</title>
</head>

<body>
<a href="<%=path%>/User_inputUser.action">添加用户 </a>
<table width="700" border="1" align="center">
  <tr>
    <td width="62" align="center">序号</td>
    <td width="148" align="center">用户编号</td>
    <td width="141" align="center">姓名</td>
    <td width="130" align="center">密码</td>
    <td width="185" align="center">操作</td>
  </tr>
  
  <%--读取用户表中所有记录 --%>
  <s:iterator id="user" value="userList" status="i">
  
  <tr>
    <td align="center">${i.index+1}</td>
    <td align="center">${userid}</td>
    <td align="center">${fullname}</td>
    <td align="center">${pwd}</td>
    <td width="185" align="center">
    <a href="<%=path%>/User_editUser.action?userid=${userid}" >修改</a>
    </td>
  </tr>
  </s:iterator>
</table>
</body>
</html>